package com.lebang.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * cences_news_joke
 * @author 
 */
@Data
@ApiModel("")
public class CencesNewsJoke implements Serializable {
    public CencesNewsJoke() {

    }

    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDate createTime;

    /**
     * 记录日期
     */
    @ApiModelProperty("记录日期")
    private Integer time;

    /**
     * 安装渠道
     */
    @ApiModelProperty("安装渠道")
    private String brand;

    /**
     * 1新用户0老用户
     */
    @ApiModelProperty("1新用户0老用户")
    private Integer category;

    /**
     * 1总计0分渠道
     */
    @ApiModelProperty("1总计0分渠道")
    private Integer type;

    /**
     * (1-10)
     */
    @ApiModelProperty("(1-10)")
    private Integer ten;

    /**
     * (11-20）
     */
    @ApiModelProperty("(11-20）")
    private Integer twenty;

    /**
     * (21-30）
     */
    @ApiModelProperty("(21-30）")
    private Integer thirty;

    /**
     * (31-全部)
     */
    @ApiModelProperty("(31-全部)")
    private Integer forty;

    /**
     * (全部总数)
     */
    @ApiModelProperty("(全部总数)")
    private Integer allCount;

    /**
     * 翻倍数
     */
    @ApiModelProperty("翻倍数")
    private Integer lookVideoCount;

    /**
     * 总支出
     */
    @ApiModelProperty("总支出")
    private BigDecimal allMoney;

    /**
     * 配置id
     */
    @ApiModelProperty("配置id")
    private Integer configId;

    /**
     * 配置名称
     */
    @ApiModelProperty("配置名称")
    private String configName;

    /**
     * 应用id
     */
    @ApiModelProperty("应用id")
    private Integer appId;

    private static final long serialVersionUID = 1L;
    public CencesNewsJoke(int i, String appStore, int time, int category, int type,
                          Integer configId,String configName,Integer appId) {
        BigDecimal o = new BigDecimal(i);

        this.brand = appStore;
        this.time = time;
        this.category = category;
        this.type = type;
        this.createTime = LocalDate.now();
        this.lookVideoCount = i;
        this.allCount = i;
        this.allMoney = o;
        this.forty = i;
        this.ten = i;
        this.twenty = i;
        this.thirty = i;
        this.configId=configId;
        this.configName=configName;
        this.appId=appId;
    }
}